package puzzle.platformer.game;

import java.util.ArrayList;

public class Grid{
	private ArrayList<Cell> cells;
	
	public Grid(){
		cells = new ArrayList<Cell>();
	}
	
	public void addCell(int x, int y, int imageid,int width){
		cells.add(new Cell(x,y,imageid,width, ""));// "" vervangen met height waarde
	}
	
	public void clearCells(){
		cells.clear();
	}
	
	public int getCellX(int index){
		return cells.get(index).getX();
	}
	
	public int getCellY(int index){
		return cells.get(index).getY();
	}
	
	public int getCellLeftX(int index){
 		return cells.get(index).getLeftX();
 	}
 	
	public int getCellRightX(int index){
 		return cells.get(index).getRightX();
 	}
	
	public int getCellTopY(int index){
 		return cells.get(index).getTopY();
 	}
 	
	public int getCellBottomY(int index){
 		return cells.get(index).getBottomY();
 	}
	
	public int getCellImageId(int index){
		return cells.get(index).getImageId();
	}
	
	public int getCellAmount(){
		return cells.size();
	}
}
